package com.htu.courseService.websocket.system.enums;

import com.htu.courseService.websocket.config.SocketEnumInterface;
import lombok.Getter;

/**
 * Created By JNNarrator on 2024/9/20 10:44
 * email: jiangn09@chinatelecom.cn
 */
@Getter
public enum ServerOperationEnum implements SocketEnumInterface {
	CONNECT_SUCCESS_REPLAY(101,"connect_success"),
	HEART_BEATE_REPLAY(201,"heartBeatReplay"),
	EXCEPTION(500,"exception")
	;
	
	private final Integer code;
	private final String app;
	private final String operation;
	
	ServerOperationEnum(Integer code, String operation) {
		this.code = code;
		this.operation = operation;
		this.app = "system";
	}
	
	@Override
	public String app() {
		return this.app;
	}
	
	@Override
	public String operation() {
		return this.operation;
	}
	
	@Override
	public Integer code() {
		return this.code;
	}
}
